class xG_HUD extends x_HUD;

//=============================================================================
// Functions:
//=============================================================================
protected function ShowMainUserInterface()
{   
	Main_HUD = new(self)class'xG_GFx_HUD';
	Main_HUD.InitUI(xGame, LocalPlayer(xPC.Player));
	Main_HUD.SetViewScaleMode( SM_ExactFit );
	Main_HUD.SetAlignment( Align_Center );
}

exec function ShowMainMenu()
{   
	if (MainMenuMovie == none)
	{
		MainMenuMovie = new class'xG_GFx_MainMenu';
		MainMenuMovie.InitUI(x_GameInfo(Worldinfo.game), LocalPlayer(xPC.Player));
		MainMenuMovie.SetViewScaleMode( SM_ExactFit );
		MainMenuMovie.SetAlignment( Align_Center );
		WorldInfo.Game.SetPause(xPC);
	} 
	else 
	{
		MainMenuMovie.Close();
		MainMenuMovie = none;
		WorldInfo.Game.ClearPause();
	}
}

event PostRender()
{
	super.PostRender();

}

//=============================================================================
// Default Properties
//=============================================================================
DefaultProperties
{
}